//
//  PublicTopHeaderView.m
//  GuShiNews
//
//  Created by huachun on 2019/8/16.
//  Copyright © 2019 Jones. All rights reserved.
//

#import "PublicTopHeaderView.h"

@implementation PublicTopHeaderView

/* 在构造方法中，创建UI*/
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        
        _Tittle = [[UILabel alloc] initWithFrame:CGRectMake(25, 10, RECRWITCH-50, 50)];
        _Tittle.font      = [UIFont boldSystemFontOfSize:16];
        _Tittle.textColor = NewsotherColor;
        _Tittle.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_Tittle];
        
        CALayer *line = [[CALayer alloc] init];
        line.frame=CGRectMake(0, 0, RECRWITCH, 10);
        line.backgroundColor=LineColor.CGColor;
        [self.layer addSublayer:line];
    }
    return self;
}

@end
